/*
   定义学生类
 */
public class Work032 {
    private String name;
    private int age;
    private String content;
    //建立空参

    public Work032() {
    }
    //建立无参

    public Work032(String name, int age, String content) {
        this.name = name;
        this.age = age;
        this.content = content;
    }
    //建立有参

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public void study(){
        System.out.println("年龄为"+age+"的"+name+"同学正在专心致志地"+content);
    }
    public void eat(){
        System.out.println("年龄为"+age+"的"+name+"同学正在吃饭");
    }
}
